﻿@model IEnumerable<PessMvc.Models.SubjectGrade>
<fieldset>
    <table>
        <tr>
            <td>学科组</td>
            <td>等第</td>
        </tr>
@foreach (var item in Model)
            {
        <tr>
                <td>@item.SubjectName</td>
                <td>
                    @foreach (var record in item.GradeRecords)
                    {
                        <span>@string.Format("{0}", record.GradeRuleName)&nbsp;&nbsp;</span>
                        <span>@string.Format("当前{0} 个", record.Count)&nbsp;&nbsp;</span>
                        @*<span>@string.Format("最多{0} %", Decimal.Round(record.CurrentPercent, 2))&nbsp;&nbsp;</span>*@
                        <span>&lt @string.Format("最多{0} 个", record.AllowedMaximum)&nbsp;&nbsp;</span>
                        <span>@string.Format("{0} %", record.Percent)&nbsp;&nbsp;</span>
                        <span>@string.Format("{0}", record.IsValidationRequired) &gt &emsp;&sbquo;&emsp;</span>
                    }
                </td>
        </tr>
        }
    </table>
</fieldset>
